<!DOCTYPE html> 
<html lang="en-US">
<head>
  <title>UNNES.TV</title>
  <meta charset="utf-8">
  <link href="<?php echo base_url(); ?>assets/css/admin/global.css" rel="stylesheet" type="text/css">
</head>
<body>
	<div class="navbar navbar-fixed-top">
	  <div class="navbar-inner">
	    <div class="container">
	      <a class="brand">UNNES.TV</a>
	      <ul class="nav">
		  
		  <?php if($this->session->userdata('is_logged_in')){ ?>
			<li <?php if($this->uri->segment(2) == 'station_tv' or $this->uri->segment(2) == 'country'){echo 'class="dropdown active"';}else{echo 'class="dropdown"';}?>>
	          <a href="#" class="dropdown-toggle" data-toggle="dropdown">TV <b class="caret"></b></a>
	          <ul class="dropdown-menu">
			  
	            <li <?php if($this->uri->segment(2) == 'country'){echo 'class="active"';}?>>
				  <a href="<?php echo base_url(); ?>admin/country">Country</a>
				</li>
				
				<li <?php if($this->uri->segment(2) == 'station_tv'){echo 'class="active"';}?>>
	              <a href="<?php echo base_url(); ?>admin/station_tv">TV Station</a>
	            </li>
				
	          </ul>
	        </li>
			
			<li <?php if($this->uri->segment(2) == 'fitur' or $this->uri->segment(2) == 'masukan'){echo 'class="dropdown active"';}else{echo 'class="dropdown"';}?>>
	          <a href="#" class="dropdown-toggle" data-toggle="dropdown">Fitur <b class="caret"></b></a>
	          <ul class="dropdown-menu">
	            <li <?php if($this->uri->segment(2) == 'fitur'){echo 'class="active"';}?>>
	              <a href="<?php echo base_url(); ?>admin/fitur">Fitur</a>
	            </li>
				<li <?php if($this->uri->segment(2) == 'masukan'){echo 'class="active"';}?>>
	              <a href="<?php echo base_url(); ?>admin/masukan">Masukan</a>
	            </li>
	          </ul>
	        </li>
			
	        <li class="dropdown">
	          <a href="#" class="dropdown-toggle" data-toggle="dropdown">System <b class="caret"></b></a>
	          <ul class="dropdown-menu">
	            <li>
	              <a href="<?php echo base_url(); ?>admin/logout">Logout</a>
	            </li>
	          </ul>
	        </li>
			
	      <?php }else{ ?>
		  
		    <li <?php if($this->uri->segment(1) == 'home'){echo 'class="active"';}?>>
	          <a href="<?php echo base_url(); ?>home">Home</a>
	        </li>
			<li <?php if($this->uri->segment(1) == 'about_us'){echo 'class="active"';}?>>
	          <a href="<?php echo base_url(); ?>about_us">About Us</a>
	        </li>
			<li <?php if($this->uri->segment(1) == 'contact'){echo 'class="active"';}?>>
	          <a href="<?php echo base_url(); ?>contact">Contact</a>
	        </li>
			<li <?php if($this->uri->segment(1) == 'sponsor'){echo 'class="active"';}?>>
	          <a href="<?php echo base_url(); ?>sponsor">Sponsor</a>
	        </li>
		  <?php } ?>
		  
		  </ul>
	    </div>
	  </div>
	</div>	
